package biz.decidePaper;

import java.util.Collection;

import dao.ChooseDao;
import dao.ChooseDaoHbnImpl;

import utils.TransactionTemplate;

import models.Choose;

public class DecidePaperBizImpl implements DecidePaperBiz {
	private ChooseDao chooseDao=new ChooseDaoHbnImpl();
	@Override
	public Collection<Choose> getAllChooses() {
		Collection<Choose> chooses=null;
		try {
			TransactionTemplate.beginTransaction();
			chooses=chooseDao.selAllChoosesMoreStu();
			TransactionTemplate.commit();
		} catch (Exception e) {
			e.printStackTrace();
			TransactionTemplate.rollback();
		}
		
		return chooses;
	}

	@Override
	public Choose getChoose(Long choId) {
		// TODO Auto-generated method stub
		return null;
	}

}
